{template 'common/header'}
<div class='container' style='padding:0 5px 10px;margin:0;width:100%'>
    <ul class="nav nav-tabs">
        <li {if $opp == 'mailsetup'}class="active"{/if}><a href="{php echo $this->createWebUrl('mailsetup');}">通讯录基本设置</a></li>
        <li {if $opp == 'adminmail'}class="active"{/if}><a href="{php echo $this->createWebUrl('adminmail');}">通讯录管理</a></li>
        <li {if $opp == 'mailacode'}class="active"{/if}><a href="{php echo $this->createWebUrl('mailacode');}">通讯录二维码设置</a></li>
        <li {if $opp == 'import'}class="active"{/if}><a href="{php echo $this->createWebUrl('import');}">导入天眼查</a></li>
    </ul>
</div>
<div class="main">
    <form method="post" class="form-horizontal form" enctype="multipart/form-data">
        <div class="panel panel-info" id="csvx">
            <div class="panel-heading"> 导入天眼查数据 </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">选择行业</label>
                    <div class="col-sm-4">
                        <select name="industry"  class="form-control">

                            <option value=""></option>
                            {php $cates1 = pdo_fetchall("SELECT * FROM ".tablename('bbyscm_card_indus')." where uniacid=$uniacid");}

                            {loop $cates1 $catelist1}
                            <option value="{$catelist1['id']}">{$catelist1['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class=" col-sm-2  control-label">上传xls</label>
                    <div class="col-sm-9">
                        {php echo tpl_form_field_xls('csv');}
                        <!-- <input  type="file" id="csv" name="csv" > -->
                        <span class="help-block">只支持天眼查导出格式</span>
                    </div>
                </div>
                  <div class="form-group">
            <label class="col-sm-2 control-label">测试</label>
            <div class="col-sm-9">
                <label class="radio-inline">
                    <input type="radio" value="0"  name="test" >导入</label>
                <label class="radio-inline">
                    <input type="radio" value="1"  name="test" checked >测试</label>
                <span class="help-block">先测试，看数据是否正确，再导入。如不正确，请联系总监修改导入规则</span>
            </div>
        </div>
                    <button type="submit" name="submit" class="btn btn-success bg-green">确定导入</button>
            </div>
        </div>
        </form>
</div>
{template 'common/footer'}
